public class ArrayReverse {
	public static void main(String[] args){
		int[] arr = {11,22,33,44,55,66};
		int length = arr.length;
		//有6个数据，共需要交换length/2 = 3次 
		for(int i = 0; i < length / 2; i++){
			int temp = arr[i];
			arr[i] = arr[length - i - 1];
			arr[length - i - 1] = temp;
		}

		System.out.println("======翻转后数组======");
		for(int i = 0; i < length; i++){
			System.out.print(arr[i] + " ");
		}
	}
}